package project.menu;

import controllers.IAutoservice;
import project.work.Navigator;

public class Back implements IMenuItem {

	private String name= "Back";
	private final Integer id= 0;
	private IMenu backmenu;
	private Navigator n;
	
	public Back(){
		n=Navigator.getInstance();
	}

	
	
	
	public Integer getId() {
		return id;
	}
	
	public void action(IAutoservice aut) {
		n.drawMenu(backmenu);
		
	}
	
	public String getNameItem() {
		
		return name;
	}
	
	public void setMenu(IMenu menu){
		this.backmenu=menu;
	}

	
}
